#
# Be sure to run `pod lib lint WDLogicBehind.podspec' to ensure this is a
# valid spec before submitting.
#
# Any lines starting with a # are optional, but their use is encouraged
# To learn more about a Podspec see https://guides.cocoapods.org/syntax/podspec.html
#

Pod::Spec.new do |s|
  s.name             = 'WDLogicBehind'
  s.version          = '0.0.5'
  s.summary          = 'A short description of WDLogicBehind.'

# This description is used to generate tags and improve search results.
#   * Think: What does it do? Why did you write it? What is the focus?
#   * Try to keep it short, snappy and to the point.
#   * Write the description between the DESC delimiters below.
#   * Finally, don't worry about the indent, CocoaPods strips it!

  s.description      = <<-DESC
TODO: Add long description of the pod here.
                       DESC

  s.homepage         = 'https://github.com/gupengling/WDLogicBehind'
  # s.screenshots     = 'www.example.com/screenshots_1', 'www.example.com/screenshots_2'
  s.license          = { :type => 'MIT', :file => 'LICENSE' }
  s.author           = { 'gupengling' => 'aigupengling@163.com' }
  s.source           = { :git => 'https://github.com/gupengling/WDLogicBehind.git', :tag => s.version.to_s }
  # s.social_media_url = 'https://twitter.com/<TWITTER_USERNAME>'

  s.ios.deployment_target = '10.0'

  s.static_framework = true
  s.default_subspec = 'Default'
  s.module_name = 'WDLogicBehind'
#  s.source_files = 'WDLogicBehind/Classes/**/*'

#  s.subspec 'ObjcBridge' do |ocext|
#    ocext.header_mappings_dir = "."#设置子目录结构保持不变
#    ocext.source_files = 'ObjcBridge', 'WDLogicBehind/Classes/WDLoger/**/*.{h,m}'
#    ocext.public_header_files = 'Classes/WDLogerHeader.h'
#  end

  s.subspec 'WDLoger' do |ext|
#    ext.header_mappings_dir = "."#设置子目录结构保持不变
    ext.source_files = 'WDLoger','WDLogicBehind/Classes/WDLoger/**/*.{swift}'
    ext.dependency 'XCGLogger'#, '7.0.1'#ObjcExceptionBridging (1.0.1)
#    ext.dependency "WDLogicBehind/ObjcBridge"
  end

  s.subspec 'WDHelper' do |ext|
#    ext.header_mappings_dir = "."
    ext.source_files = 'WDHelper','WDLogicBehind/Classes/WDHelper/**/*.{h,m,swift}'
    ext.dependency 'Zip'#, '2.1.2'
    ext.dependency 'UIKitExtentions'
  end

  s.subspec 'WDDatabase' do |ext|
#    ext.header_mappings_dir = "."
    ext.source_files = 'WDDatabase','WDLogicBehind/Classes/WDDatabase/**/*.{h,m,swift}'
    ext.public_header_files = "WDLogicBehind/Classes/WDDatabase/**/*.h"
    ext.dependency 'FMDB'#, '2.7.5'
    ext.dependency 'WDLogicBehind/WDLoger'
    ext.dependency 'WDLogicBehind/WDHelper'
  end

  s.subspec 'WDEnvironment' do |ext|
#    ext.header_mappings_dir = "."
    ext.source_files = 'WDEnvironment','WDLogicBehind/Classes/WDEnvironment/**/*.{h,m,swift}'
    ext.vendored_frameworks = 'WDLogicBehind/Libraries/*.framework'

   ext.resource_bundles = {
     'WDLogicBehind' => ['WDLogicBehind/Assets/*.png',
     'WDLogicBehind/Assets/*.plist',
     'WDLogicBehind/Assets/*.xcassets'
     ]
   }

  end

  s.subspec 'WDNetwork' do |ext|
#    ext.header_mappings_dir = "."
    ext.source_files = 'WDNetwork','WDLogicBehind/Classes/WDNetwork/**/*.{h,m,swift}'
#    ext.public_header_files = 'WDLogicBehind/Classes/WDNetwork/*.h'
    ext.dependency 'AFNetworking'#, '4.0.1'
  end

  s.subspec 'Default' do |deft|
    deft.dependency 'WDLogicBehind/WDLoger'
    deft.dependency 'WDLogicBehind/WDHelper'
    deft.dependency 'WDLogicBehind/WDDatabase'
    deft.dependency 'WDLogicBehind/WDEnvironment'
    deft.dependency 'WDLogicBehind/WDNetwork'
  end

  # s.public_header_files = 'Pod/Classes/**/*.h'
  # s.frameworks = 'UIKit', 'MapKit'

   #s.dependency 'Bugly', '2.5.0'
end
